package cn.no7player.model;

import java.util.Date;

public class AccessToken {
    private Long id;

    private String appid;

    private String appsecret;

    private Date createTime;

    private String active;

    private String accessToken;

    public Long getId() {
        return id;
    }

    /**
     * This method sets the value of the database column t_access_token.id
     *
     * @param id the value for t_access_token.id
     */
    public void setId(Long id) {
        this.id = id;
    }

    public String getAppid() {
        return appid;
    }

    /**
     * This method sets the value of the database column t_access_token.appid
     *
     * @param appid the value for t_access_token.appid
     */
    public void setAppid(String appid) {
        this.appid = appid == null ? null : appid.trim();
    }

    public String getAppsecret() {
        return appsecret;
    }

    /**
     * This method sets the value of the database column t_access_token.appSecret
     *
     * @param appsecret the value for t_access_token.appSecret
     */
    public void setAppsecret(String appsecret) {
        this.appsecret = appsecret == null ? null : appsecret.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    /**
     * This method sets the value of the database column t_access_token.create_time
     *
     * @param createTime the value for t_access_token.create_time
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getActive() {
        return active;
    }

    /**
     * This method sets the value of the database column t_access_token.active
     *
     * @param active the value for t_access_token.active
     */
    public void setActive(String active) {
        this.active = active == null ? null : active.trim();
    }

    public String getAccessToken() {
        return accessToken;
    }

    /**
     * This method sets the value of the database column t_access_token.access_token
     *
     * @param accessToken the value for t_access_token.access_token
     */
    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken == null ? null : accessToken.trim();
    }
}